package com.zc.tools.motionwelder.support;



public class MSpriteAnimationPlayer extends MPlayer {

	  private MSprite sprite;

	  public MSpriteAnimationPlayer(MSpriteData data, MSprite sprite) {
	    super(data);
	    this.sprite = sprite;
	  }

	  public void notifyStartOfAnimation() {
	    // do nothing..
	  }

	  public void notifyEndOfAnimation() {
	    sprite.endOfAnimation();
	  }

	  public byte getSpriteOrientation() {
	    return sprite.getSpriteOrientation();
	  }

	  public int getSpriteDrawX() {
	    return sprite.getSpriteDrawX();
	  }

	  public int getSpriteDrawY() {
	    return sprite.getSpriteDrawY();
	  }

	  public void updateSpritePositionBy(int xinc, int yinc) {
	    sprite.updateSpritePosition(xinc, yinc);
	  }

}
